package com.huadao.pda.common.dialog;

import android.content.Context;
import android.view.View;


import com.huadao.pda.R;
import com.huadao.pda.common.dialog.effects.RockButtonAttr;

import java.util.ArrayList;
import java.util.List;

public class RockAttribute {
    private int devideColor;
    private CharSequence title;
    private int titleColor;
    private CharSequence message;
    private int messageColor;
    private int dialogColor;
    private int iconResId;
    private View customView;
    private int mDuration = -1;
    private boolean isCancelable = true;
    private Effectstype type = null;
    private boolean buttonList;
    private List<RockButtonAttr> buttons=new ArrayList<>();

    public void toDefault(Context mContext) {
        devideColor = mContext.getResources().getColor(R.color.splitter_dark);
        titleColor = mContext.getResources().getColor(R.color.text_black);
        messageColor = mContext.getResources().getColor(R.color.text_black);
        dialogColor = mContext.getResources().getColor(R.color.dialog_bg);
    }

    public int getDevideColor() {
        return devideColor;
    }

    public void setDevideColor(int devideColor) {
        this.devideColor = devideColor;
    }

    public CharSequence getTitle() {
        return title;
    }

    public void setTitle(CharSequence title) {
        this.title = title;
    }

    public int getTitleColor() {
        return titleColor;
    }

    public void setTitleColor(int titleColor) {
        this.titleColor = titleColor;
    }

    public CharSequence getMessage() {
        return message;
    }

    public void setMessage(CharSequence message) {
        this.message = message;
    }

    public int getMessageColor() {
        return messageColor;
    }

    public void setMessageColor(int messageColor) {
        this.messageColor = messageColor;
    }

    public int getDialogColor() {
        return dialogColor;
    }

    public void setDialogColor(int dialogColor) {
        this.dialogColor = dialogColor;
    }

    public int getIconResId() {
        return iconResId;
    }

    public void setIconResId(int iconResId) {
        this.iconResId = iconResId;
    }

    public View getCustomView() {
        return customView;
    }

    public void setCustomView(View customView) {
        this.customView = customView;
    }

    public int getmDuration() {
        return mDuration;
    }

    public void setmDuration(int mDuration) {
        this.mDuration = mDuration;
    }

    public boolean isCancelable() {
        return isCancelable;
    }

    public void setCancelable(boolean cancelable) {
        isCancelable = cancelable;
    }

    public Effectstype getType() {
        return type;
    }

    public void setType(Effectstype type) {
        this.type = type;
    }

    public boolean isButtonList() {
        return buttonList;
    }

    public void setButtonList(boolean buttonList) {
        this.buttonList = buttonList;
    }

    public List<RockButtonAttr> getButtons() {
        return buttons;
    }

    public void addButton(RockButtonAttr rockButtonAttr) {
        buttons.add(rockButtonAttr);
    }

}
